{% url 'index-view' as index_url %}
{% url 'all-view' as all_url %}
{% url 'news-view' as news_url %}


<header id="vmaig-header" class="navbar navbar-inverse navbar-fixed-top navbar-vmaig">
    <div class="container">
    <div class="navbar-header">
        <h3>PiAnalysis</h3>
    </div>
        <div class="collapse navbar-collapse" id="vmaig-navbar-collapse">
            <ul class="nav navbar-nav  navbar-right"">
                <li class="">
                <a href="/index.html">
                    主页
                </a>
                </li>
                <li class="">
                <a href="/analysis.html">
                    数据分析
                </a>
                </li>
                <li>
                <a href="/blog/category/应用案例">
                   案例系统  
                </a>
                </li>
                <li>
                <a href="/blog/category/代码开源">
                    开源论坛
                </a>
                </li>
                <li>
                <a href="/help.html">
                    帮助中心
                </a>
                </li>
                <li class="dropdown">
                    <a href="javascript:;" style="padding:5px;" data-toggle="dropdown">
                        <img src="/static/img/default.jpg" alt="" width="40">
                        &nbsp;{{request.session.username}}
                        <span class="badge" style="background-color: #D94600;">{{notification_count}}</span>        
                    </a>
                    <ul class="dropdown-menu navbar-right">
                        {% if not column.zy_id %}
                        <li><a href="/blog/publish.html?column={{request.session.column}}">
                        <span class="glyphicon glyphicon-user"></span>
                        发布文章</a></li>
                        <li><a href="/blog/userarticle.html?column={{request.session.column}}">
                        <span class="glyphicon glyphicon-lock"></span>
                        我的文章</a></li>
                        <li><a href="/blog/user/notification">
                        <span class="glyphicon glyphicon-envelope"></span>
                        消息
                        <span class="badge" style="background-color: #D94600;">{{notification_count}}</span>
                        </a></li>
                        {% endif %}
                        <li><a href="/" >
                        <span class="glyphicon glyphicon-log-out"></span>
                        退出登录</a></li>
                    </ul>
                </li>
                
            </ul>

        </div>
    </div>
</header>

